package com.fanqiechaodan.factory.abstractfactory.factory;

import com.fanqiechaodan.factory.abstractfactory.product.ProductA;
import com.fanqiechaodan.factory.abstractfactory.product.ProductA1;
import com.fanqiechaodan.factory.abstractfactory.product.ProductB;
import com.fanqiechaodan.factory.abstractfactory.product.ProductB1;

/**
 * @author fanqiechaodan
 * @Classname Factory1
 * @Description 具体工厂1
 */
public class Factory1 implements AbstractFactory{

    @Override
    public ProductA createProductA() {
        return new ProductA1();
    }

    @Override
    public ProductB createProductB() {
        return new ProductB1();
    }
}
